<template>
  <div class="order-box">
        <header class="order-head">
            <div class="order-head-box">
                <div class="iconbox">
                    <i class="iconfont back" @click="backAction">&#xe618;</i>
                </div>
                <h1 class="order-name">订单</h1>
            </div>
        </header>  
        <section>
            <div class="order-content">
                <img src="//fuss10.elemecdn.com/f/18/9fb04779371b5b162b41032baf5f3gif.gif" alt="">
                <h3>登录后查看外卖订单</h3>
                <el-button type="primary"><router-link to="/personpage">立即登录</router-link></el-button>
            </div>
        </section>
        <Footerpage></Footerpage>
  </div>
</template>


<script>
import Vue from 'vue'
import Router from 'vue-router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
import Footerpage from './Footer'
Vue.use(ElementUI)
export default {
  name:'orderpage',
  components: {
    Footerpage
  },
  methods: {
      backAction () {
          history.go(-1)
      }
  }
}
</script>

<style lang="scss">
@import '../../static/px2rem.scss';
body{
    background-color: #f5f5f5;
}
.order-box{
    .order-head{
        height: px2rem(44);
        .order-head-box{
            background-image: linear-gradient(90deg,#0af,#0085ff);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            height: px2rem(44);
            color: #fff;
            font-size: px2rem(18);
            background: #2395ff;
            .order-name{
                position: absolute;
                top: 0;
                left: 50%;
                height: px2rem(44);
                max-width: 50%;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                font-weight: 700;
                font-size: 1em;
                line-height: px2rem(44);
                transform: translateX(-50%);
            }
            .iconbox{
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: px2rem(44); 
                    height: px2rem(44);
                    .back{
                         display: block;
                        width: px2rem(20);
                        height: px2rem(20);
                        color: #fff;
                        position: absolute;
                        left: px2rem(12);
                        top: px2rem(12);
                        font-size: px2rem(18)
                    }
               }
            }
    }
    .order-content{
        margin-top: px2rem(100);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        .el-button{
            font-family: inherit;
            text-align: center;
            background-color: #56d176;
            padding: px2rem(10);
            min-width: px2rem(120);
            font-size: px2rem(16);
            border-radius: px2rem(5);
            a{
                color: white;
                font-size: px2rem(14);
            }
        }
        h3{
            margin: px2rem(12) 0 px2rem(10);
            color: #6a6a6a;
            font-weight: 400;
            font-size: px2rem(17);
        }
    }
    footer {
        height: px2rem(50);
        border-top: px2rem(3) solid #f4f4f4;
        position: fixed;
        bottom: 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        background: white;
        div {
            width: 25%;
            height: 100%;
            .router-link-active{
            color: #0089dc!important;
            }
            a{   
            display: block;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #999;
            i{
                margin-bottom: px2rem(3);
                font-size: px2rem(23);
                font-weight: bold;
                
            }
            span {
                font-size: px2rem(10);
            
            }
            }
        }
  }
}
</style>
